﻿using System;
using System.Text;

namespace BizElements.Core.ProviderComponents
{
    /// <summary>Renders table/view name and alias.</summary>
    public interface ITableRenderer
    {
        /// <summary>Renders table/view name.</summary>
        /// <param name="table">Table/view to render.</param>
        /// <param name="output">StringBuilder to which the name is appended.</param>
        void RenderTableName(IDbTable table, StringBuilder output);

        /// <summary>Renders table/view alias.</summary>
        /// <param name="table">Table/view to render.</param>
        /// <param name="output">StringBuilder to which the alias is appended.</param>
        void RenderAlias(IDbTable table, StringBuilder output);
    }
}